<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app" style="background-color:red">
        <mycomp></mycomp>
        <mycomp></mycomp>
        <mycomp></mycomp> 
    </div>
</body>
<script type="text/javascript">
        Vue.component('mycomp',{
              template:'<h1>Hello World!</h1>'
         })
         var vm1=new Vue({
              el:'#app1'
         });
         var vm2=new Vue({
              el:'#app2'
         });
</script>
</html>
